package com.mes.biz.domain;

import javax.validation.Valid;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import javax.validation.constraints.NotBlank;

import com.mes.common.annotation.Excel;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 盘点单详情对象 biz_inventory_order_detail
 * @author wy
 * @email wy
 * @date 2023-06-19
 */
@Data
public class BizInventoryOrderDetail extends BaseEntity<BizInventoryOrderDetail>
{
    private static final long serialVersionUID = 1L;

    /** 产品 */
    @Excel(name = "产品")
    @NotBlank(message = "产品不允许为空")
    @LogField
    @FieldRemark(name = "产品",field = "productCode")
    private String productCode;

    /** 盘点单id */
    @Excel(name = "盘点单id")
    @NotBlank(message = "盘点单id不允许为空")
    @LogField
    @FieldRemark(name = "盘点单id",field = "inventoryOrderId")
    private String inventoryOrderId;

    /** 仓位 */
    @Excel(name = "仓位")
    @LogField
    @FieldRemark(name = "仓位",field = "spaceId")
    private String spaceId;

    /** 数量 */
    @Excel(name = "数量")
    @LogField
    @FieldRemark(name = "数量",field = "number")
    private BigDecimal number;

    /** 数量 */
    @Excel(name = "库存数量")
    @LogField
    @FieldRemark(name = "库存数量",field = "number")
    private BigDecimal stock;

    /** 单位 */
    @Excel(name = "单位")
    @LogField
    @FieldRemark(name = "单位",field = "unit")
    private String unit;

    /** 租户id */
    @Excel(name = "租户id")
    @LogField
    @FieldRemark(name = "租户id",field = "tenantId")
    private String tenantId;

    private String brand;
    private String spec;
    private String color;
    private List<Map<String,Object>> unitList;
    private BigDecimal purchasesPrice;
    private BigDecimal purchasesPriceA;
    private BigDecimal purchasesPriceB;
}
